/* *
 * @file    audio_i2s.h
 * @author  Azolla (1228449928@qq.com)
 * @brief   ES7148 I2S audio code.
 * @version 0.1
 * @date    2022-11-04
 * 
 * @copyright Copyright (c) 2022
 * */
#ifndef __AUDIO_ES7148_H__
#define __AUDIO_ES7148_H__

#ifdef __cpluspuls
extern "C" {
#endif

#define AUDIO_I2S_BUFF_SIZE    1024

typedef struct {
    uint8_t *src;
    size_t   size;
} audio_i2s_stream_t;
 
void audio_i2s_init(void);

size_t audio_i2s_write(const void *src, size_t size);

void audio_set_volume(uint8_t vol);



#ifdef __cpluspuls
}
#endif

#endif /* __AUDIO_ES7148_H__ END. */
